package com.wise.summer.v1.cms.content.region;

import com.wise.entities.content.Region;
import com.wise.framework.annotations.*;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.enums.RegionLevel;
import lombok.Getter;
import lombok.Setter;

@WithIdPathVariable
@Getter
@Setter
@Publish
@ApiInfo("更新区域信息")
public class UpdateRegionById extends BasicSummer<Region> {
    private String id;
    @Required
    @ApiInfo("等级")
    @EnumField(enumClass = RegionLevel.class)
    private Integer level;
    @Required
    @ApiInfo("编码")
    private String code;
    @ApiInfo("父节点")
    private String parentCode;
    @Required
    @ApiInfo("区域名")
    private String name;
    @ApiInfo("邮编")
    private String zipcode;
    @ApiInfo("排序 默认1")
    private Integer displayOrder;
}
